package com.example.sayhello;

import com.example.base.spring.BaseConfiguration;
import com.example.base.spring.WebApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

/**
 * Created by xuxiang on 2016/10/11.
 */
@SpringBootApplication
@ComponentScan
@EnableEurekaClient
@EnableAutoConfiguration
@Import({WebApplication.class, BaseConfiguration.class})
public class SayHelloApplication {
    public static void main(String[] args) {
        new SpringApplicationBuilder(SayHelloApplication.class).web(true).run(args);
    }
}
